package com.airsystem.pos.bengkel.entity.loader;

import com.airsystem.pos.bengkel.entity.JenisTagihan;
import com.airsystem.pos.bengkel.interfaces.ICallback;
import com.airsystem.pos.bengkel.interfaces.ILoader;
import com.airsystem.pos.bengkel.interfaces.IServices;
import com.airsystem.pos.bengkel.service.JenisTagihanServices;

/**
 * @author Fanny Irawan Sutawanir (fannyirawans@gmail.com)
 */
public class JenisTagihanLoader implements ILoader<Iterable<JenisTagihan>> {
	private final IServices<JenisTagihan> jenisService;

	public JenisTagihanLoader() {
		jenisService = new JenisTagihanServices();
	}

	public void load(ICallback<Iterable<JenisTagihan>> callback) {
		Iterable<JenisTagihan> jenisTagihan = jenisService.select(new JenisTagihan());
		callback.get(jenisTagihan);
	}
}